package service

import "errors"

var (
	mergeNodeExpireErr                = errors.New("merge node has expired")
	mergeNodeClientAbortErr           = errors.New("merge node client abort")
	chunkMergeNodeNotFoundErr         = errors.New("chunk merge node not found")
	chunkMergeNodeAlreadyDoneErr      = errors.New("chunk merge node already done")
	invalidChunkMergeFragmentIndexErr = errors.New("chunk merge fragment index error")
	chunkMergeClientAbortErr          = errors.New("chunk merge node client abort")
	chunkMergeNodeExpireErr           = errors.New("chunk merge node has expired")
	invalidCacheMetaLineErr           = errors.New("invalid cache meta line")
	invalidCacheFragmentSizeErr       = errors.New("invalid cache fragment size")
	invalidCacheContentLengthErr      = errors.New("invalid cache content length")
	invalidCacheWriteTimeErr          = errors.New("invalid cache write time")
	invalidCacheMetaMagicErr          = errors.New("invalid cache meta magic")
	invalidCacheMetaErr               = errors.New("invalid cache meta")
	invalidCacheStatusErr             = errors.New("invalid cache status")
	invalidCacheObjectErr             = errors.New("invalid cache object")
)

var (
	apiNotFoundErr                    = errors.New("api not found")
	cacheMissErr                      = errors.New("cache miss")
	noSourceKeyHeaderErr              = errors.New("no source key header")
	noSourceVersionHeaderErr          = errors.New("no source version header")
	noClientTokenHeaderErr            = errors.New("no client token header")
	noRealServerErr                   = errors.New("no real server")
	noMergeTokenErr                   = errors.New("no merge token")
	noChunkMergeTokenHeaderErr        = errors.New("no chunk merge token header")
	noRevalidateStatusHeaderErr       = errors.New("no revalidate status header")
	noHeaderSourceKeyHeaderErr        = errors.New("no header source key header")
	invalidChunkFragmentIndexErr      = errors.New("invalid chunk fragment index header")
	invalidChunkFragmentSizeHeaderErr = errors.New("invalid chunk fragment size header")
	invalidChunkMergeOperationErr     = errors.New("invalid chunk merge operation")
)
